<?php
namespace Home\Controller;

use Think\Controller;
/**
* ==============================================
*  http://www.liuhuanhui.cn
* ==============================================
* @date: 2014-10-10
* @author:liuhuanhui
* @encoding: UTF-8
*/
class AboutController extends Controller
{
    /**
     * 关于我
     */
    public function index()
    {
       	
		$about=M('options')->field('name,value')->where(array(group=>1))->select();
		$data=array();
		foreach ($about as $a)
		$data[$a['name']]=$a['value'];
		$data['age']=date('Y-m-d')-date('Y-m-d',$data['about_BORNDATE']);
		$this->assign('m',$data);
		$this->links=M('links')->field('name,href')->where('ishide="n"')->order('orders')->select();
        $this->display();
    }

}